package com.star.spring.actor;

import org.springframework.stereotype.Component;

@Component
public class GreetingService {

    public String greet(String name) throws InterruptedException {
        Thread.sleep(2000);
        return "Hello, " + name;
    }

}